<?php

namespace app\controller;

use app\Request;
use app\service\CareerService;

class CareerController extends BaseController
{

    private $career_service;

    public function __construct()
    {
        $this->career_service = new CareerService();
    }

    public function getCareerData(Request $request)
    {
        $get = $request->only(['cid']);
        return $this->career_service->getCareer($get['cid']);

    }

    public function updartCareerData(Request $request)
    {
       $up = $request->only(['cid']);

       return $this->career_service->updartCareer($up['cid']);
    }

}